package com.wjk.Demo04;

public class Test {
    public static void main(String[] args) {
        new Inter(){
            public void method(){
                System.out.println("我是匿名内部类");
            }
        }.method();
    }
}

interface Inter{
    void method();
}
